package cc.minos.components.skins.icons
{
	
	/**
	 * ...
	 * @author Minos
	 */
	public class RectIcon extends IconDecorator
	{
		private var _side:Number;
		
		public function RectIcon( skin:Skin , side:Number = 12 , color:uint = 0xffffff )
		{
			_side = side;
			_fillColor = color;
			super( skin );
			_type = "rectIcon";
		}
		
		override public function draw():void
		{
			super.draw();
			
			icon.graphics.beginFill( fillColor , 1 );
			icon.graphics.drawRect( startX - haftSide , startY - haftSide , _side , _side );
			icon.graphics.endFill();
			
			trace( "draw rect" );
		}
		
		protected function get haftSide():Number
		{
			return _side * .5;
		}
	
	}

}